<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <include file="Public:common_file" />
    <meta name="description" content="{$info.description}">
    <meta name="keywords" content="{$info.keywords}">
    <title>{$info.title}-添加好友</title>
    <link rel="stylesheet" href="/Public/css/friend.css">
</head>
<body>
	<div class="head" style="background-color:#f23030;">
        <div class="left" onclick="back()">
            <i class="fa fa-chevron-left" aria-hidden="true"></i>
        </div>
        <div class="center">
            <input type="text" name="" placeholder="输入对方姓名或手机号" class="form-control" id="like">
        </div>
        <div class="right" onclick="search_friend()">
            <i class="fa fa-search" aria-hidden="true"></i>
        </div>
    </div>

    <div class="sort_box">
        
    </div>

	<include file="Public:foot" />
    <script type="text/javascript">
        function search_friend(){
        	var like = $('#like').val();
        	if (like == "") {
        		alert('请输入对方姓名或手机号！')
        	}else{
        		var html = 
        		'<a href="{:U("Friend/look")}" >'+
		        	'<div class="sort_list">'+
			            '<div class="num_logo">'+
			                '<img class="lazy" data-original="/Public/img/head.jpg" >'+
			            '</div>'+
			            '<div class="num_name">张三</div>'+
			        '</div>'+
		        '<a/>';
		        $('.sort_box').html(html);
		        imgload();
        	}
        	
        }
        imgload();
    </script>
	
</body>
</html>